﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Wq.Model
{
    public static class SysCacheKey
    {
        static string Site = "wq";
        /// <summary>
        /// 全部菜单缓存
        /// </summary>
        public static string Menu = $"{Site}:menu";

        /// <summary>
        /// 本地Token 
        /// </summary>
        public static string RefreshToken(string token) => $"{Site}:refreshtoken_{token}";

        /// <summary>
        /// 本地会员Token 
        /// </summary>
        public static string RefreshMemberToken(string token) => $"{Site}:refreshtoken_member_{token}";

        /// <summary>
        /// 文件分组
        /// </summary>
        public static string FileCategory(int type) => $"{Site}:filecategory_{type}";


        /// <summary>
        /// 地区
        /// </summary>
        public static string Regions(int maxLevel) => $"{Site}:regions_{maxLevel}";


        /// <summary>
        /// 开发城市列表
        /// </summary>
        public static string OpenCityList = $"{Site}:opencitylist";

        /// <summary>
        /// 层级关系
        /// </summary>
        /// <param name="maxLevel"></param>
        /// <returns></returns>
        public static string RegionToLevel(int level) => $"{Site}:regionstolevel_{level}";

        /// <summary>
        /// 会场分类
        /// </summary>
        public static string MeetingCategories = $"{Site}:meeting:categories";

        /// <summary>
        /// 会场实体缓存
        /// </summary>
        /// <param name="id"></param>
        /// <returns></returns>
        public static string EnueModel(long id) => $"{Site}:meeting:enuemodel_{id}";

        /// <summary>
        /// 会场特色
        /// </summary>
        public static string MeetingFeatures = $"{Site}:meeting:features";

        /// <summary>
        /// 会场标签
        /// </summary>
        public static string Tags = $"{Site}:tags";

        /// <summary>
        /// 会场标签
        /// </summary>
        public static string Categorys = $"{Site}:categorys";

        public static string MeetingConfig = $"{Site}:meetingconfig";

        /// <summary>
        /// 会场品牌
        /// </summary>
        public static string Brands = $"{Site}:brands";

        /// <summary>
        /// 系统配置
        /// </summary>
        public static string SiteSetting = $"{Site}:sitesetting";

        /// <summary>
        /// 开通的城市
        /// </summary>
        /// <param name="id"></param>
        /// <returns></returns>
        public static string OpenCity(int regionId) => $"{Site}:meeting:opencity{regionId}";

        /// <summary>
        /// 手机验证码
        /// </summary>
        public static string PhoneCode(string phone) => $"{Site}:phonecode_{phone}";

        /// <summary>
        /// 实列实体缓存
        /// </summary>
        /// <param name="id"></param>
        /// <returns></returns>
        public static string ExampleModel(long id) => $"{Site}:case:example_{id}";

        /// <summary>
        /// 实列分类
        /// </summary>
        public static string ExampleCategories = $"{Site}:case:categories";

        /// <summary>
        /// 实列行业
        /// </summary>
        public static string ExampleIndustrys = $"{Site}:case:industrys";

        /// <summary>
        /// 客户需求
        /// </summary>
        public static string ExampleActivity = $"{Site}:case:activity";
    }
}
